<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
           /* let c = new Date(2024,5,23,7,0,0)//输出指定日期和事件
            console.log(c)*/

            let c = new Date
            console.log(c.getFullYear)//获取年份
            console.log(c.getMonth)//获取月份（0-11）0表示一月
            console.log(c.getDate)//获取日期
          
    </script>
</body>
</html>